# Copyright 2024 Arm Limited and/or its affiliates
# <open-source-office@arm.com>
# SPDX-License-Identifier: MIT

if(BUILD_TESTING AND NOT CMAKE_CROSSCOMPILING)
    # left empty for future mocks.
else()
    add_library(helpers-sntp
        src/sntp_client_task.c
    )

    target_include_directories(helpers-sntp
        PUBLIC
            inc
    )

    target_include_directories(coresntp-config
        INTERFACE
            inc
    )

    target_link_libraries(helpers-sntp
    PUBLIC
        backoff-algorithm
        connectivity-stack
        corepkcs11
        coresntp
        mbedtls
    PRIVATE
        helpers-logging
    )
endif()
